package cn.iocoder.yudao.framework.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_HOUR_MINUTE;


@Data
public class HourRange {

    @JsonFormat(pattern = "HH:mm")
    @DateTimeFormat(pattern = FORMAT_HOUR_MINUTE)
    private LocalTime start;

    @JsonFormat(pattern = "HH:mm")
    @DateTimeFormat(pattern = FORMAT_HOUR_MINUTE)
    private LocalTime end;
}
